< previous page page_543 next page >

Page 543
Caution
Because of a problem in the resource compiler that limits the path size that the compiler will accept, keep the files path as short as possible.

After you define all the resources you want in the file, save the file as RESDEMO.RC and then close the text editor. You're now ready to compile this definition file into the finished resource file.
Using the Resource Compiler
The resource compiler is a DOS-based program that allows you to compile the resource definition file into a .RES file, allowing these resources to be used in your application. The Resource Compiler is executed on the command line as follows:
rc /r [options] definition-file
Table 19.3 shows the parameters used to control the Resource Compiler.
TABLE 19.3. RESOURCE COMPILER PARAMETERS.
ParameterDescription
/rSpecifies that the .RC file only be compiled, not linked to any executable
/?Displays a list of rc command-line options
/fo filenameUses filename as the name of the .RES file
/vPrints progress messages
/dDefines a symbol
/lSets the default language ID in hex
/iAdds a path for INCLUDE searches
/xIgnores INCLUDE environment variable
/cDefines a code page used by NLS conversion
RC fileSpecifies the name of the resource definition file (.RC) that contains the names, types, filenames, and descriptions of the resources to be compiled

To compile the completed definition file and name the compiled version DEMO32.RES, you would enter the following command at the DOS prompt:
RC /r /fo DEMO32.RES XXXX.RC
where XXXX is the name of the .RC file that you've just finished creating.

 
< previous page page_543 next page >

If you like this book, buy it!